import { router } from '@ruifox-cms/utils'
const routes = [
  {
    path: '/bidding/user',
    name: 'Layout',
    redirect: '/bidding/user/NoticeList',
    component: () => import('@/views/layout/UserLayout.vue'),
    meta: {
      title: '招标',
      whiteList: true
    },
    children: [
      {
        path: '/bidding/user/NoticeList',
        name: 'BiddingUserNoticeList',
        component: () => import('@/views/bidding/user/NoticeList.vue'),
        meta: {
          title: '公告列表',
          whiteList: true
        }
      }, 
      {
        path: '/bidding/user/NoticeDetail',
        name: 'BiddingUserNoticeDetail',
        component: () => import('@/views/bidding/user/NoticeDetail.vue'),
        meta: {
          title: '公告详情',
          whiteList: true
        }
      },
      {
        path: '/bidding/user/Supplier',
        name: 'BiddingUserSupplier',
        component: () => import('@/views/bidding/user/Supplier.vue'),
        meta: {
          title: '绑定企业',
          whiteList: true
        }
      },
    ]
  }
]

routes.forEach(route => {
  router.addRoute(route)
})

export default router